/*
 * @Description: 
 * @Version: 1.0
 * @Autor: lzc
 * @Date: 2021-06-25 14:14:52
 * @LastEditors: lzc
 * @LastEditTime: 2021-11-23 16:04:40
 */ 

#include <rtthread.h>
#include <rtdevice.h>
#include "drv_gpio.h"
#include "my_elcdif.h"
#include "startup.h"
#include "GUI.h"
#include "WM.h"
int FreeMaster_Test_Val = 0;
int FreeMaster_FreeBytes_Val = 0;
int FreeMaster_UsedBytes_Val = 0;
/* DS1,GPIO3_IO03,GPIO_SD_B1_03 */
#define LED0_PIN               GET_PIN(1,3)

int main(void)
{ 
    /* set LED0 pin mode to output */
    rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT); 
    while (1)
    {
        rt_pin_write(LED0_PIN, PIN_HIGH);
        rt_thread_mdelay(500);
        rt_pin_write(LED0_PIN, PIN_LOW);
        rt_thread_mdelay(500);
        FreeMaster_Test_Val ++;  
        FreeMaster_FreeBytes_Val = GUI_ALLOC_GetNumFreeBytes();
        FreeMaster_UsedBytes_Val = GUI_ALLOC_GetNumUsedBytes(); 
    }
}

